﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DTO
{
    public class ThamSo_DTO
    {
        private int _soLuongNhapToiThieu;

        public int SoLuongNhapToiThieu
        {
            get { return _soLuongNhapToiThieu; }
            set { _soLuongNhapToiThieu = value; }
        }

        private int _soLuongTonToiThieuTruocKhiNhap;

        public int SoLuongTonToiThieuTruocKhiNhap
        {
            get { return _soLuongTonToiThieuTruocKhiNhap; }
            set { _soLuongTonToiThieuTruocKhiNhap = value; }
        }

        private int _soLuongTonToiThieuSauKhiBan;

        public int SoLuongTonToiThieuSauKhiBan
        {
            get { return _soLuongTonToiThieuSauKhiBan; }
            set { _soLuongTonToiThieuSauKhiBan = value; }
        }

        private float _noToiDa;

        public float NoToiDa
        {
            get { return _noToiDa; }
            set { _noToiDa = value; }
        }

        private bool _apDungQuyDinh4;

        public bool ApDungQuyDinh4
        {
            get { return _apDungQuyDinh4; }
            set { _apDungQuyDinh4 = value; }
        }

        public ThamSo_DTO(int slnhaptoithieu, int sltontoithieutruockhinhap, int sltontoithieusaukhiban, float notoida, bool adqd4)
        {
            SoLuongNhapToiThieu = slnhaptoithieu;
            SoLuongTonToiThieuTruocKhiNhap = sltontoithieutruockhinhap;
            SoLuongTonToiThieuSauKhiBan = sltontoithieusaukhiban;
            NoToiDa = notoida;
            ApDungQuyDinh4 = adqd4;
        }
    }

    public class Sach_DTO
    {
        private int _maSach;

        public int MaSach
        {
            get { return _maSach; }
            set { _maSach = value; }
        }

        private string _tenSach;

        public string TenSach
        {
            get { return _tenSach; }
            set { _tenSach = value; }
        }

        private string _theLoai;

        public string TheLoai
        {
            get { return _theLoai; }
            set { _theLoai = value; }
        }

        private string _tacGia;

        public string TacGia
        {
            get { return _tacGia; }
            set { _tacGia = value; }
        }

        private int _soLuongTon;

        public int SoLuongTon
        {
            get { return _soLuongTon; }
            set { _soLuongTon = value; }
        }

        public Sach_DTO(int ms, string ten, string theloai, string tacgia, int slt)
        {
            MaSach = ms;
            TenSach = ten;
            TheLoai = theloai;
            TacGia = tacgia;
            SoLuongTon = slt;
        }
    }

    public class KhachHang_DTO
    {
        private int _maKhachHang;

        public int MaKhachHang
        {
            get { return _maKhachHang; }
            set { _maKhachHang = value; }
        }

        private string _hoTen;

        public string HoTen
        {
            get { return _hoTen; }
            set { _hoTen = value; }
        }

        private string _diaChi;

        public string DiaChi
        {
            get { return _diaChi; }
            set { _diaChi = value; }
        }

        private string _email;

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        private string _dienThoai;

        public string DienThoai
        {
            get { return _dienThoai; }
            set { _dienThoai = value; }
        }

        private float _tienNo;

        public float TienNo
        {
            get { return _tienNo; }
            set { _tienNo = value; }
        }

        public KhachHang_DTO(int ma, string ten, string dc, string email, string dt, float tienno)
        {
            MaKhachHang = ma;
            HoTen = ten;
            DiaChi = dc;
            Email = email;
            DienThoai = dt;
            TienNo = tienno;
        }
    }

    public class PhieuNhapSach_DTO
    {
        private int _maPhieuNhap;

        public int MaPhieuNhap
        {
            get { return _maPhieuNhap; }
            set { _maPhieuNhap = value; }
        }

        private string _ngayNhap;

        public string NgayNhap
        {
            get { return _ngayNhap; }
            set { _ngayNhap = value; }
        }

        public PhieuNhapSach_DTO(string ngaynhap)
        {
            NgayNhap = ngaynhap;
        }

    }

    public class ChiTietPhieuNhap_DTO
    {
        private int _stt;

        public int Stt
        {
            get { return _stt; }
            set { _stt = value; }
        }

        private int _maChiTietPhieuNhap;

        public int MaChiTietPhieuNhap
        {
            get { return _maChiTietPhieuNhap; }
            set { _maChiTietPhieuNhap = value; }
        }

        private int _maPhieuNhap;

        public int MaPhieuNhap
        {
            get { return _maPhieuNhap; }
            set { _maPhieuNhap = value; }
        }

        private int _maSach;

        public int MaSach
        {
            get { return _maSach; }
            set { _maSach = value; }
        }

        private string _tenSach;

        public string TenSach
        {
            get { return _tenSach; }
            set { _tenSach = value; }
        }

        private int _soLuongNhap;

        public int SoLuongNhap
        {
            get { return _soLuongNhap; }
            set { _soLuongNhap = value; }
        }

        private float _donGiaNhap;

        public float DonGiaNhap
        {
            get { return _donGiaNhap; }
            set { _donGiaNhap = value; }
        }

        public ChiTietPhieuNhap_DTO(int stt, int mpn, int ms, string ten, int sln, float dgn)
        {
            Stt = stt;
            MaPhieuNhap = mpn;
            MaSach = ms;
            TenSach = ten;
            SoLuongNhap = sln;
            DonGiaNhap = dgn;
        }
    }

    public class HoaDon_DTO
    {
        private int _maHoaDon;

        public int MaHoaDon
        {
            get { return _maHoaDon; }
            set { _maHoaDon = value; }
        }

        private string _ngayHoaDon;

        public string NgayHoaDon
        {
            get { return _ngayHoaDon; }
            set { _ngayHoaDon = value; }
        }

        private int _maKhachHang;

        public int MaKhachHang
        {
            get { return _maKhachHang; }
            set { _maKhachHang = value; }
        }

        private float _tongTien;

        public float TongTien
        {
            get { return _tongTien; }
            set { _tongTien = value; }
        }
        public HoaDon_DTO(string ngh, int mkh, float tien)
        {
            NgayHoaDon = ngh;
            MaKhachHang = mkh;
            TongTien = tien;
        }
    }

    public class ChiTietHoaDon_DTO
    {
        private int _stt;

        public int Stt
        {
            get { return _stt; }
            set { _stt = value; }
        }

        private int _maChiTietHoaDon;

        public int MaChiTietHoaDon
        {
            get { return _maChiTietHoaDon; }
            set { _maChiTietHoaDon = value; }
        }

        private int _maHoaDon;

        public int MaHoaDon
        {
            get { return _maHoaDon; }
            set { _maHoaDon = value; }
        }

        private int _maSach;

        public int MaSach
        {
            get { return _maSach; }
            set { _maSach = value; }
        }

        private string _tenSach;

        public string TenSach
        {
            get { return _tenSach; }
            set { _tenSach = value; }
        }

        private int _soLuongBan;

        public int SoLuongBan
        {
            get { return _soLuongBan; }
            set { _soLuongBan = value; }
        }

        private float _donGiaBan;

        public float DonGiaBan
        {
            get { return _donGiaBan; }
            set { _donGiaBan = value; }
        }

        public ChiTietHoaDon_DTO(int stt, int mhd, int ms, string tensach, int slb, float dgb)
        {
            Stt = stt;
            MaHoaDon = mhd;
            MaSach = ms;
            TenSach = tensach;
            SoLuongBan = slb;
            DonGiaBan = dgb;
        }
    }

    public class PhieuThuTien_DTO
    {
        private int _maPhieuThu;

        public int MaPhieuThu
        {
            get { return _maPhieuThu; }
            set { _maPhieuThu = value; }
        }

        private int _maKhachHang;

        public int MaKhachHang
        {
            get { return _maKhachHang; }
            set { _maKhachHang = value; }
        }

        private string _ngayThuTien;

        public string NgayThuTien
        {
            get { return _ngayThuTien; }
            set { _ngayThuTien = value; }
        }

        private float _soTienThu;

        public float SoTienThu
        {
            get { return _soTienThu; }
            set { _soTienThu = value; }
        }

        public PhieuThuTien_DTO(int mkh, string ngay, float st)
        {
            MaKhachHang = mkh;
            NgayThuTien = ngay;
            SoTienThu = st;
        }
    }

    public class BaoCaoTon_DTO
    {
        private int _maBaoCao;

        public int MaBaoCao
        {
            get { return _maBaoCao; }
            set { _maBaoCao = value; }
        }

        private string _thang;

        public string Thang
        {
            get { return _thang; }
            set { _thang = value; }
        }

        public BaoCaoTon_DTO(string thang)
        {
            Thang = thang;
        }
    }

    public class ChiTietBaoCaoTon_DTO
    {
        private int _maChiTietBaoCaoTon;

        public int MaChiTietBaoCaoTon
        {
            get { return _maChiTietBaoCaoTon; }
            set { _maChiTietBaoCaoTon = value; }
        }

        private int _maBaoCao;

        public int MaBaoCao
        {
            get { return _maBaoCao; }
            set { _maBaoCao = value; }
        }

        private int _maSach;

        public int MaSach
        {
            get { return _maSach; }
            set { _maSach = value; }
        }

        private int _tonDau;

        public int TonDau
        {
            get { return _tonDau; }
            set { _tonDau = value; }
        }

        private int _phatSinh;

        public int PhatSinh
        {
            get { return _phatSinh; }
            set { _phatSinh = value; }
        }

        private int _tonCuoi;

        public int TonCuoi
        {
            get { return _tonCuoi; }
            set { _tonCuoi = value; }
        }

        public ChiTietBaoCaoTon_DTO(int ma, int mas, int td, int ps, int tc)
        {
            MaBaoCao = ma;
            MaSach = mas;
            TonDau = td;
            PhatSinh = ps;
            TonCuoi = tc;
        }
    }

    public class BaoCaoCongNo_DTO
    {
        private int _maBaoCao;

        public int MaBaoCao
        {
            get { return _maBaoCao; }
            set { _maBaoCao = value; }
        }

        private string _thang;

        public string Thang
        {
            get { return _thang; }
            set { _thang = value; }
        }

        public BaoCaoCongNo_DTO(string thang)
        {
            Thang = thang;
        }
    }

    public class ChiTietBaoCaoCongNo_DTO
    {
        private int _maChiTietBaoCaoCongNo;

        public int MaChiTietBaoCaoCongNo
        {
            get { return _maChiTietBaoCaoCongNo; }
            set { _maChiTietBaoCaoCongNo = value; }
        }

        private int _maBaoCao;

        public int MaBaoCao
        {
            get { return _maBaoCao; }
            set { _maBaoCao = value; }
        }

        private int _maKhachHang;

        public int MaKhachHang
        {
            get { return _maKhachHang; }
            set { _maKhachHang = value; }
        }

        private float _noDau;

        public float NoDau
        {
            get { return _noDau; }
            set { _noDau = value; }
        }

        private float _phatSinh;

        public float PhatSinh
        {
            get { return _phatSinh; }
            set { _phatSinh = value; }
        }

        private float _noCuoi;

        public float NoCuoi
        {
            get { return _noCuoi; }
            set { _noCuoi = value; }
        }

        public ChiTietBaoCaoCongNo_DTO(int mbc, int mkh, float nodau, float phatsinh, float nocuoi)
        {
            MaBaoCao = mbc;
            MaKhachHang = mkh;
            NoDau = nodau; PhatSinh = phatsinh;
            NoCuoi = nocuoi;
        }
    }

    public class NhanVien_DTO
    {
        private int _maNhanVien;

        public int MaNhanVien
        {
            get { return _maNhanVien; }
            set { _maNhanVien = value; }
        }

        private string _hoTen;

        public string HoTen
        {
            get { return _hoTen; }
            set { _hoTen = value; }
        }

        private string _matKhau;

        public string MatKhau
        {
            get { return _matKhau; }
            set { _matKhau = value; }
        }

        private int _maViTri;

        public int MaViTri
        {
            get { return _maViTri; }
            set { _maViTri = value; }
        }

        public NhanVien_DTO(string ten, string mk, int mvt)
        {
            HoTen = ten;
            MatKhau = mk;
            MaViTri = mvt;
        }
    }

    public class ViTri_DTO
    {
        private int _maViTri;

        public string TenViTri { get; set; }

        public int MaViTri
        {
            get { return _maViTri; }
            set { _maViTri = value; }
        }

        private bool _nhapSach;

        public bool NhapSach
        {
            get { return _nhapSach; }
            set { _nhapSach = value; }
        }

        private bool _lapHoaDon;

        public bool LapHoaDon
        {
            get { return _lapHoaDon; }
            set { _lapHoaDon = value; }
        }

        private bool _traCuuSach;

        public bool TraCuuSach
        {
            get { return _traCuuSach; }
            set { _traCuuSach = value; }
        }

        private bool _lapPhieuThuTien;

        public bool LapPhieuThuTien
        {
            get { return _lapPhieuThuTien; }
            set { _lapPhieuThuTien = value; }
        }

        private bool _lapBaoCao;

        public bool LapBaoCao
        {
            get { return _lapBaoCao; }
            set { _lapBaoCao = value; }
        }

        private bool _thayDoiQuyDinh;

        public bool ThayDoiQuyDinh
        {
            get { return _thayDoiQuyDinh; }
            set { _thayDoiQuyDinh = value; }
        }

        public ViTri_DTO(int mavt, string tenvt, bool ns, bool lhd, bool tc, bool lpt, bool lbc, bool td)
        {
            NhapSach = ns;
            LapHoaDon = lhd;
            TraCuuSach = tc;
            LapPhieuThuTien = lpt;
            ThayDoiQuyDinh = td;
            LapBaoCao = lbc;
            TenViTri = tenvt;
            MaViTri = mavt;
        }
    }

    public class Section_DTO
    {
        public int TenDangNhap { get; set; }
        public string HoTen { get; set; }
        public string MatKhau { get; set; }
        public ViTri_DTO Permision { get; set; }

        public Section_DTO(int tendn, string hoten, string matkhau, ViTri_DTO permis)
        {
            TenDangNhap = tendn;
            HoTen = hoten;
            MatKhau = matkhau;
            Permision = permis;
        }
    }

}
